#include <QFile>

#include "MainWindow.h"

MainWindow::MainWindow(QWidget*parent):QMainWindow(parent)
{
    ui.setupUi(this);
    loadStyleSheet();
}

void MainWindow::paintEvent(QPaintEvent *pe)
{

}

void MainWindow::loadStyleSheet()
{
    QFile qss("D:\\qt-test-project\\test_projects\\test6-build-VS2010-Debug\\debug\\test.qss");
    bool bopen = qss.open(QFile::ReadOnly);
    //QByteArray bytearray = qss.readAll();
    qApp->setStyleSheet(qss.readAll());
    qss.close();
}

